]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
endSessionDialog: Fix invocation call
authorAlessandro Bono <alessandro.bono369@gmail.com>
Fri, 20 Feb 2026 21:48:08 +0000 (22:48 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 23 Feb 2026 20:25:10 +0000 (20:25 +0000)
The function expects a domain, which was missing. Add it.

Fixes: 8f03eec3a ("endSessionDialog: Use registered D-Bus error")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4084>

js/ui/endSessionDialog.js

index 6178320d09389ae8cb85ac5a7495d0af9687c6b0..fdb0182eadf8f222dcfd99a8a4230e45c71a703e 100644 (file)
@@ -718,7 +718,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
         this._updateButtons();
 
         if (!this.open()) {
-            invocation.return_error_literal(
+            invocation.return_error_literal(ModalDialogErrors,
                 ModalDialogError.GRAB_FAILED,
                 'Cannot grab pointer and keyboard');
             return;